<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2009, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.console.libs.templates.skel.views.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php __('CakePHP: the rapid development php framework:'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
		echo $this->Html->meta('icon');

		echo $this->Html->css('cake.generic');
		echo $this->Html->script('jquery-1.4.2.min.js');
				
		echo $scripts_for_layout;
	?>

	
</head>
<body>
	<div id="container">
		<div id="header">
		  <h1><?php echo $this->Html->link('MONKY', '/',array('escape'=>false)); ?></h1>
		  <div id="link-header">
		  	  <?
		  	  if($this->Session->check('Auth.User.id')){
		  	  	echo $this->Html->link(__('profile',true),array('controller'=>'users','action'=>'profile'));
		  	  	echo $this->Html->link(__('logout',true),array('controller'=>'users','action'=>'logout'));
		  	  }else {
		  	  	echo $this->Html->link(__('login',true),array('controller'=>'users','action'=>'login'));
		  	  }
		  	  echo $this->Html->link(__('help',true),array('controller'=>'users','action'=>'login'));
		  	  
		  	  echo $this->Form->create('Link',array('action'=>'search','id'=>'search-form','type'=>'get'));
		  	  echo $this->Form->input('Search.text',array('id'=>'top-keywords','label'=>false,'div'=>false));
		  	  echo $this->Form->submit(' ',array('id'=>'top-submit','type'=>'submit','label'=>false,'div'=>false));
		  	  echo $this->Form->end();
		  	  ?>
		  </div>
		  
		  <div style="clear:both"></div>
		  
  <ul class="topnav">
  	<li><?=$this->Html->link(__('Submit news',true),array('controller'=>'links','action'=>'add')) ?></li>
  	<li><?=$this->Html->link(__('Cover',true),array('controller'=>'links','action'=>'index')) ?></li>
  	<li><?=$this->Html->link(__('Popular',true),array('controller'=>'links','action'=>'popular')) ?></li>
  	<li><?=$this->Html->link(__('Pending',true),array('controller'=>'links','action'=>'shakeit')) ?></li>
  	<li><?=$this->Html->link(__('Sneak',true),array('controller'=>'links','action'=>'index')) ?></li>
  	<li><?=$this->Html->link(__('Monky notes',true),array('controller'=>'links','action'=>'index')) ?></li>
  </ul>

  <div style="clear:both"></div>			
		</div>
		<div id="content">

			<?php echo $this->Session->flash(); ?>

			<?php echo $content_for_layout; ?>

		</div>
		<div id="footer">
			
		</div>
	</div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>